import java.util.Scanner;
public class One{
	public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	System.out.println("The Year:");
	long year;
	try {
	year = sc.nextLong();
	if((year%4==0&&year%100!=0)||year%400==0){
	System.out.println(year+"is a leap year");
	}else{
	System.out.println(year+"not leap years");	
	}
	}catch(Exception e){
	System.out.println("The year you entered is not a valid year");
	}
	}
}